import { getItem, setItem } from '@/utils/storage'

export default {
  namespaced: true,
  state () {
    return {
      userinfo: getItem()
    }
  },
  mutations: {
    saveInfo (state, obj) {
      state.userinfo = obj
      setItem(obj)
    }
  },
  actions: {},
  getters: {}
}
